package com.k12.admim.service;

import com.k12.admim.model.entity.sys.SysMenu;
import com.k12.admim.model.vo.MenuVo;

import java.util.List;

public interface OperatorMenuService {

    List<MenuVo> selectMenuList(String tenantId, String loginId);

    List<Long> selectMenuListByRoleId(Long roleId,String tenantId);

    boolean checkMenuNameUnique(SysMenu menu);

    int insertMenu(SysMenu menu);

    SysMenu selectMenuById(Long menuId,String tenantId);

    SysMenu updateMenu(SysMenu menu);

    Boolean hasChildByMenuId(Long menuId,String tenantId);

    Boolean checkMenuExistRole(Long menuId,String tenantId);

    Boolean deleteMenuById(Long menuId,String tenantId);
}
